<?php
/**
 * Created by PhpStorm.
 * User: asus
 * Date: 2017/8/3
 * Time: 13:44
 */

namespace Moblie\Controller;

use Common\Controller\HomebaseController;

class WxController extends HomebaseController
{
    public function index()
    {
        $data = M('slide')->select();
        echo json_encode($data);
        return $data;
    }
    public function ad()
    {
        $id = i('get.id');
        $data = M('add')->where(['id'=>$id])->find();
        echo json_encode($data);
        return $data;
    }
}